Component({
    /**
     * 组件的属性列表
     */
    properties: {

    },

    /**
     * 组件的初始数据
     */
    data: {
        activeKey: 0,
    },

    /**
     * 组件的方法列表
     */
    methods: {
        onChange(event) {
            
            this.setData({
                activeKey: event.detail
            })
            // console.log(this.data.activeKey)
        },

        onReachBottom(){

            if(this.data.activeKey == 0){
                // console.log("专家列表上拉触底1")
                let expert_list  =  this.selectComponent("#expert_list ")
                expert_list.reachBottomLoad();
            }else{
                console.log("问诊结果上拉触底")
                let expert_diagnosis_result  = this.selectComponent("#expert_diagnosis_result")
                expert_diagnosis_result.reachBottomLoad();
            }

           
        }

    }
})

